<template>
    <div class="user">
        <div class="page">
        <div class="content">
            <header class="header" id="header">
                <a href="javascript:history.go(-1)" class="header-back">
                    <svg t="1626589337870" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1988" width="16" height="16"><path d="M766.862 1021.724c-10.24 0-20.594-3.64-28.444-10.922L228.693 538.396c-15.701-14.563-15.701-38.229 0-52.792L738.418 13.198c15.701-14.563 41.187-14.563 56.889 0 15.701 14.564 15.701 38.23 0 52.793L314.027 512l481.28 446.009c15.701 14.563 15.701 38.23 0 52.793-7.851 7.282-18.205 10.922-28.445 10.922z" p-id="1989" fill="#ffffff"></path></svg>
                </a>
                    <h1 class="header-back-title">个人中心</h1>
                    <div class="header-operate">
                        <a href="javascript:void(0)" class="icon iconfont icon-search">
                        </a>
                        <a href="javascript:void(0)" class="icon iconfont icon-menu">
                        </a>
                    </div>
                
            </header>
            <div id="guide" class="guide">
                <i id="guideOverlay" class="guide-overlay" role="button"></i>
                <div class="guide-content">
                    <nav class="guide-nav">
                        <a href="/male" class="guide-nav-a">
                            <i class="icon icon-home"></i>
                            <h4 class="guide-nav-h">首页</h4>
                        </a>
                        <a href="/category/male" class="guide-nav-a">
                            <i class="icon icon-sort"></i>
                            <h4 class="guide-nav-h">分类</h4>
                        </a>
                        <a href="/rank/male" class="guide-nav-a">
                            <i class="icon icon-rank"></i>
                            <h4 class="guide-nav-h">排行榜</h4>
                        </a>
                        <a href="/free/male" class="guide-nav-a">
                            <i class="icon icon-free"></i>
                            <h4 class="guide-nav-h">免费</h4>
                        </a>
                        <a href="/finish/male" class="guide-nav-a">
                            <i class="icon icon-end"></i>
                            <h4 class="guide-nav-h">完本</h4>
                        </a>
                        <a href="/user" class="guide-nav-a ">
                            <i class="icon icon-account"></i>
                            <h4 class="guide-nav-h">账户</h4>
                        </a>
                    </nav>
                    <div class="guide-footer">
                        <a href="/bookshelf/my" class="btn-primary" data-size="14">我的书架</a>
                    </div>
                </div>
            </div>
            <div class="center-header">
                <img src="https://qidian.gtimg.com/qd/images/ico/default_user.0.2.png" class="center-header-img" alt="书友20170710211417698">
                <p class="center-header-p">书友20170710211417698</p>
                <i class="icon-level-2" role="img" aria-label="普通会员"></i>
            </div>
            <div class="module module-merge">
                <a href="https://pay.yuewen.com/h5/index?appId=13&amp;areaId=31&amp;userGuid=452083691&amp;returnUrl=http%3A%2F%2Fm.qidian.com%2Fuser%3Ffrom%3Dlogin%26from%3Dpay" class="center-pay">
                    <i class="icon-center-pay"></i>
                    <p>去充值<svg t="1626592601833" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5896" width="16" height="16"><path d="M326.848 75.52a41.408 41.408 0 0 0-59.648 2.432 44.16 44.16 0 0 0 1.856 60.8l0.512 0.448 393.984 374.272-393.216 371.2a44.16 44.16 0 0 0-3.008 60.8l0.448 0.512a41.408 41.408 0 0 0 59.136 3.072l0.512-0.512 426.88-403.072a44.16 44.16 0 0 0 0.64-63.232l-0.512-0.512L326.848 75.52z" p-id="5897" fill="#d81e06"></path></svg></p>
                </a>
                <div class="cell">
                    <ul class="btn-group">
                        <li class="btn-group-cell center-acc-li" role="link">
                            <a href="javascript:void(0)" role="option">
                                <output>0</output>
                                <p class="gray">月票</p>
                            </a>
                        </li>
                        <li class="btn-group-cell center-acc-li" role="link">
                            <a href="javascript:void(0)" role="option">
                                <output>1</output>
                                <p class="gray">推荐票</p>
                            </a>
                        </li>
                        <li class="btn-group-cell center-acc-li" role="link">
                            <a href="javascript:void(0)" role="option">
                                <output>0</output>
                                <p class="gray">起点币</p>
                            </a>
                        </li>
                    </ul>
                </div>
            </div>
            <nav class="module">
                <ul class="center-nav-ol">
                    <li class="book-li" role="link">
                        <a href="javascript:void(0)" class="book-layout" role="option">
                            <h3 class="book-title"><i class="icon-center-msg"></i>消息中心</h3>
                            <span class="book-author">
                                <svg t="1626592601833" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5896" width="16" height="16"><path d="M326.848 75.52a41.408 41.408 0 0 0-59.648 2.432 44.16 44.16 0 0 0 1.856 60.8l0.512 0.448 393.984 374.272-393.216 371.2a44.16 44.16 0 0 0-3.008 60.8l0.448 0.512a41.408 41.408 0 0 0 59.136 3.072l0.512-0.512 426.88-403.072a44.16 44.16 0 0 0 0.64-63.232l-0.512-0.512L326.848 75.52z" p-id="5897" fill="#bfbfbf"></path></svg>
                            </span>
                        </a>
                    </li>
                    <li class="book-li" role="link">
                        <a href="javascript:void(0)" class="book-layout" role="option">
                            <h3 class="book-title"><i class="icon-center-level"></i>会员等级</h3>
                            <span class="book-author">
                                <i class="icon-level-2"></i>
                                <svg t="1626592601833" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5896" width="16" height="16"><path d="M326.848 75.52a41.408 41.408 0 0 0-59.648 2.432 44.16 44.16 0 0 0 1.856 60.8l0.512 0.448 393.984 374.272-393.216 371.2a44.16 44.16 0 0 0-3.008 60.8l0.448 0.512a41.408 41.408 0 0 0 59.136 3.072l0.512-0.512 426.88-403.072a44.16 44.16 0 0 0 0.64-63.232l-0.512-0.512L326.848 75.52z" p-id="5897" fill="#bfbfbf"></path></svg>
                            </span>
                        </a>
                    </li>
                    <li class="book-li" role="link">
                        <a href="javascript:void(0)" class="book-layout" role="option">
                            <h3 class="book-title"><i class="icon-center-exp"></i>经验等级</h3>
                            <span class="book-author">
                                5级<span class="char-dot"></span>
                                <svg t="1626592601833" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5896" width="16" height="16"><path d="M326.848 75.52a41.408 41.408 0 0 0-59.648 2.432 44.16 44.16 0 0 0 1.856 60.8l0.512 0.448 393.984 374.272-393.216 371.2a44.16 44.16 0 0 0-3.008 60.8l0.448 0.512a41.408 41.408 0 0 0 59.136 3.072l0.512-0.512 426.88-403.072a44.16 44.16 0 0 0 0.64-63.232l-0.512-0.512L326.848 75.52z" p-id="5897" fill="#bfbfbf"></path></svg>
                            </span>
                        </a>
                    </li>
                    <li class="book-li" role="link">
                        <a href="javascript:void(0)" class="book-layout" target="_blank" role="option">
                            <h3 class="book-title"><i class="icon-center-safe"></i>安全中心</h3>
                            <span class="book-author">
                                <svg t="1626592601833" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5896" width="16" height="16"><path d="M326.848 75.52a41.408 41.408 0 0 0-59.648 2.432 44.16 44.16 0 0 0 1.856 60.8l0.512 0.448 393.984 374.272-393.216 371.2a44.16 44.16 0 0 0-3.008 60.8l0.448 0.512a41.408 41.408 0 0 0 59.136 3.072l0.512-0.512 426.88-403.072a44.16 44.16 0 0 0 0.64-63.232l-0.512-0.512L326.848 75.52z" p-id="5897" fill="#bfbfbf"></path></svg>
                            </span>
                        </a>
                    </li>
                    <li class="book-li" role="link">
                        <a href="javascript:void(0)p" class="book-layout" role="option">
                            <h3 class="book-title"><i class="icon-center-help"></i>帮助中心</h3>
                            <span class="book-author">
                                <svg t="1626592601833" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5896" width="16" height="16"><path d="M326.848 75.52a41.408 41.408 0 0 0-59.648 2.432 44.16 44.16 0 0 0 1.856 60.8l0.512 0.448 393.984 374.272-393.216 371.2a44.16 44.16 0 0 0-3.008 60.8l0.448 0.512a41.408 41.408 0 0 0 59.136 3.072l0.512-0.512 426.88-403.072a44.16 44.16 0 0 0 0.64-63.232l-0.512-0.512L326.848 75.52z" p-id="5897" fill="#bfbfbf"></path></svg>
                            </span>
                        </a>
                    </li>
                </ul>
            </nav>
            <div class="module">
                <a id="logout" href="javascript:" class="module-bar center-logout" @click="quitlogin()">退出登录</a>
            </div>
        </div>
    </div>
    
    </div>
</template>
<script>
export default {
    methods: {
      quitlogin(){
        window.sessionStorage.removeItem("login");
        this.$router.push("/index");
      }
    },
}
</script>
<style lang="less">
.user{
    .page {
  min-height: calc(100vh - (84rem / 16));
  background-color: #fff;
  box-shadow: 0 200px #fff;
}

.page-center .content, .page-level .content, .page-record .content {
  overflow: hidden;
}

.content {
  padding-bottom: .1px;
  background-color: #f6f7f9;
}

.page-center .header, .page-level .header, .page-level-detail .header, .page-record .header {
  color: #fff;
  border-bottom: 0;
  background: 0 0;
}

.header {
  position: relative;
  box-sizing: border-box;
  height: 2.75rem;
  padding-top: .6875rem;
  padding-bottom: .625rem;
  border-bottom: 1px solid transparent;
  background-color: transparent;
}

.header-operate {
  position: absolute;
  top: 0.3rem;
  right: 0;
  bottom: 0;
  padding: .25rem .375rem;
  .iconfont{
      color: #fff;
      text-align: center;
  }
}

.header-operate .icon, .header-operate .header-operate-a {
  float: left;
  overflow: hidden;
  width: 2.25rem;
  height: 2.25rem;
}

.header-back {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  padding: .625rem .8125rem .625rem .875rem;
}

a.icon-more:empty {
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
}

a.icon-more:empty ::before {
  height: 4px;
  -webkit-transform-origin: top center;
  transform-origin: top center;
  border-bottom: 1px solid;
}

a.icon-more:empty ::after {
  -webkit-transform: translateY(-5px);
  transform: translateY(-5px);
}

a.icon-more:empty::after, a.icon-more:empty::before {
  position: absolute;
  top: 1.125rem;
  left: 50%;
  width: 1.125rem;
  margin-top: -1px;
  margin-left: -.5625rem;
  content: '';
  -webkit-transition: all .15s;
  transition: transform .15s;
  border-top: 1px solid;
}

.header-back-title {
  font-size: .875rem;
  font-weight: 400;
  line-height: 0.8rem;
  position: absolute;
  left: 2.6875rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: white;
}

.guide {
  position: fixed;
  z-index: 3;
  top: 2.5rem;
  right: 0;
  bottom: 0;
  left: 0;
  visibility: hidden;
  overflow: hidden;
  transition: visibility .25s;
  -wekit-transition: visibility .25s;
}

.guide .guide-content {
  position: relative;
  overflow: hidden;
  padding: 0 1rem;
  -webkit-transition: -webkit-transform .15s;
  transition: transform .15s;
  -webkit-transform: translateY(-100%);
  transform: translateY(-100%);
  background-color: #fff;
}

.guide .guide-content .guide-nav {
  font-size: 0;
  text-align: justify;
}

.guide .guide-content .guide-nav .guide-nav-a {
  margin: .75rem 1.5rem;
}

.guide .guide-content .guide-nav .guide-nav-a .icon {
  position: absolute;
  right: 0;
  bottom: 1.625rem;
  left: 0;
  margin: auto;
}

.guide .guide-content .guide-nav .guide-nav-a .guide-nav-h {
  position: absolute;
  right: 0;
  bottom: .1875rem;
  left: 0;
}

.aside, .aside-overlay, .footer-backtop-circle svg, .full, .guide-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.aside-overlay, .guide-overlay {
  -webkit-transition: opacity .25s;
  transition: opacity .25s;
  opacity: 0;
  background-color: #000;
}

.center-header {
  font-size: .875rem;
  overflow: hidden;
  min-height: 10.625rem;
  margin-top: -2.75rem;
  text-align: center;
  color: #fff;
  background: #ed424b url(https://qidian.gtimg.com/qdm/img/center-header-bg.c36bb.jpg) no-repeat center;
  background-size: cover;
}

.center-header-img {
  width: 3.5rem;
  height: 3.5rem;
  margin-top: 3rem;
  vertical-align: bottom;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4rem;
}

.center-header-p {
  margin: .25rem 0 .125rem;
}

.icon-level-2 {
  background-image: url(https://qidian.gtimg.com/qdm/icon/level/sprite@2x.94f57.png);
  background-size: 92px 72px;
  background-position: -39px 0;
  width: 33px;
  height: 15px;
}

.module {
  margin: .75rem 0;
  background-color: #fff;
}

.module-merge {
  margin: 0;
}

.center-pay {
  font-size: .75rem;
  position: relative;
  float: right;
  width: 25%;
  height: 4rem;
  text-align: center;
  color: #ed424b;
  border-left: 1px solid #f0f1f2;
}

.center-pay::before {
  position: absolute;
  top: 50%;
  left: -3px;
  width: 5px;
  height: 5px;
  margin-top: -3px;
  content: '';
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
  color: #f0f1f2;
  border-top: 1px solid;
  border-right: 1px solid;
  background-color: #fff;
}

.center-pay .icon-center-pay {
  display: block;
  margin: .75rem auto .375rem;
}

.icon-center-pay {
  background-image: url(https://qidian.gtimg.com/qdm/icon/center/sprite@2x.8723f.png);
  background-size: 106px 73px;
  background-position: -34px -28px;
  width: 24px;
  height: 18px;
}

.cell {
  display: table-cell;
  width: 1920px;
  width: 101vw;
}

.btn-group {
  display: table;
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  table-layout: fixed;
}

.btn-group-cell {
  font-size: 100%;
  font-weight: 400;
  display: table-cell;
}

.center-acc-li {
  font-size: .75rem;
  height: 4rem;
  text-align: center;
}

.center-acc-li output {
  font-size: 1.125rem;
  display: block;
  margin: .75rem 0 -1px;
}

.gray {
  color: #969ba3;
}

.center-nav-ol {
  line-height: 1.25rem;
}

li {
  display: list-item;
  text-align: -webkit-match-parent;
}

.book-layout {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 1rem;
  -webkit-transition: padding-left .15s;
  transition: padding-left .15s;
}

.center-nav-ol .book-title {
  font-size: .875rem;
  float: left;
}

.book-title {
  line-height: 1.4;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.center-nav-ol .book-title > i {
  margin-right: .75rem;
  vertical-align: -.35ex;
}

.icon-center-msg {
  background-image: url(https://qidian.gtimg.com/qdm/icon/center/sprite@2x.8723f.png);
  background-position: -90px 0;
  width: 16px;
  height: 18px;
  background-size: 106px 73px;
}

.icon-center-level {
  background-image: url(https://qidian.gtimg.com/qdm/icon/center/sprite@2x.8723f.png);
  background-size: 106px 73px;
  background-position: 0 -56px;
  width: 18px;
  height: 17px;
}

.icon-center-exp {
  background-image: url(https://qidian.gtimg.com/qdm/icon/center/sprite@2x.8723f.png);
  background-position: -68px 0;
  width: 18px;
  height: 18px;
  background-size: 106px 73px;
}

.icon-center-safe {
  background-image: url(https://qidian.gtimg.com/qdm/icon/center/sprite@2x.8723f.png);
  background-position: -90px -22px;
  width: 16px;
  height: 18px;
  background-size: 106px 73px;
}

.icon-center-help {
  background-image: url(https://qidian.gtimg.com/qdm/icon/center/sprite@2x.8723f.png);
  background-position: -90px -44px;
  width: 16px;
  height: 16px;
  background-size: 106px 73px;
}

.book-li::after {
  display: block;
  margin-top: -1px;
  margin-left: 1rem;
  content: '';
  -webkit-transition: margin-left .15s;
  transition: margin-left .15s;
  border-bottom: 1px solid #f0f1f2;
}

.center-nav-ol .book-author {
  float: right;
}

.book-author {
  font-size: .8125rem;
  display: block;
  overflow: hidden;
  max-width: 10em;
  max-width: calc(100vw - 2rem - (176rem / 16));
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #969ba3;
}

.module-bar {
  font-size: .8125rem;
  line-height: 2.75rem;
  text-align: center;
  color: #969ba3;
  background-color: #f6f7f9;
}

.center-logout {
  font-size: .875rem;
  display: block;
  color: #ed424b;
  background: 0 0;
}

.footer {
  background-color: #fff;
}

.footer-link {
  font-size: .875rem;
  display: flex;
//   display: -webkit-box;
//   display: box;
  padding: .5625rem 1.1875rem 0;
  text-align: center;
  color: #969ba3;
  justify-content: space-between;
//   -webkit-box-pack: justify;
  box-pack: justify;
}

.dark {
  color: #33373d;
}

.footer-link-a {
  display: block;
  padding: .5rem 0;
  -webkit-box-flex: 1;
  box-flex: 1;
}

.footer-copy {
  font-size: .75rem;
  font-weight: 300;
  padding-top: .25rem;
  padding-bottom: 1rem;
  text-align: center;
  color: #969ba3;
}

.footer-app {
  position: relative;
  display: block;
  box-sizing: border-box;
  height: 3.75rem;
  padding: .75rem 6rem 0 4rem;
  background-color: #f6f7f9;
}

.footer-app-h {
  font-size: .875rem;
}

.footer-app-p {
  font-size: .75rem;
  color: #969ba3;
}

.footer-app .btn-primary-small {
  position: absolute;
  top: 0;
  right: 1rem;
  bottom: 0;
  height: 1.625rem;
  margin: auto;
}

.btn-primary, .btn-primary-small {
  font-size: .875rem;
  line-height: 2.25rem;
  display: inline-block;
  padding-right: 1em;
  padding-right: 2ch;
  padding-left: 1em;
  padding-left: 2ch;
  text-align: center;
  color: #fff;
  border-radius: 99px;
  background-color: #ed424b;
}

.btn-primary-small {
  line-height: 1.625rem;
}

}
</style>